package com.intelligentcar.springboot.service;

import com.intelligentcar.springboot.bean.Manager;
import org.apache.ibatis.session.RowBounds;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface ManagerServer {
    //查询所有的维修人员
    public List<Manager> queryrepair();

    //后台新增人员
    public int manageradd(Manager manager);

    //查询后台人员有几条数据
    public int count();

    //查询后台人员有几条数据
    public int count1(Manager manager);

    //查询后台人员有几条数据
    public int count2(Manager manager);

    //查询后台人员有几条数据
    public int count3(Manager manager);

    //查询后台人员表所有数据
    public List<Manager> selectmanager(RowBounds rowBounds);

    //修改后台人员
    public int update(Manager manager);

    //删除后台人员
    public int delete(Manager manager);

    //查询后台人员
    public List<Manager> querybackstage(Manager manager, RowBounds rowBounds);

    //查询后台人员
    public List<Manager> querybackstage1(Manager manager, RowBounds rowBounds);

    //查询后台人员
    public List<Manager> querybackstage2(Manager manager, RowBounds rowBounds);

    //查询后台人员
    public List<Manager> querybackstage3(Manager manager);

    //登录
    public Map<String, Object> login(HttpServletRequest req, Manager manager);

    //修改参数信息
    public boolean updateSelf(HttpServletRequest req, Manager manager);

    //修改参数状态(启用、禁用)
    public boolean updatePwd(Manager manager);

    //修改头像信息
    public int updateHead(Manager manager);

    //根据账号，查询个人信息
    public Manager selectInfor(Manager manager);

    //旧密码校验
    public boolean pwdCheck(Manager manager);
}
